/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package asa;

import java.util.InputMismatchException;
import java.util.Random;
import java.util.Scanner;

/**
 *
 * @author scriptoff
 */
public class ASAInstRand extends ASAInst implements NeedBlocInterface{

    private String id;
    private ASABloc bl = null;

    public ASAInstRand(String id) {
        this.id = id;
    }
    
    @Override
    public void evalue() {
        Random r = new Random();
        Variables v = Variables.getInstance();
        v.setValue(bl, id, r.nextInt());
    }

    public void setBl(ASABloc bl) {
        this.bl = bl;
    }

    @Override
    public ASAExpr getExpr1() {
        return null;
    }

    @Override
    public ASAExpr getExpr2() {
        return null;
    }

    @Override
    public String getLabelExplorateur() {
        return "RAND";
    }
    
}
